package linkwechat.mapper.system;

import linkwechat.pojo.SysUseres;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface PerSonalMapper {

    @Update("update sys_user set avatar=#{tx}  where  user_id = #{id};")
    Integer UpdTx(@Param("tx") String tx , @Param("id") Long id);


    @Update("update sys_user set nick_name =#{nickName} , phonenumber=#{phonenumber} , email = #{email} , sex = #{sex}  where user_id = #{userId} ")
    Integer UpdGeRzl(SysUseres sysUseres);

    @Update("update sys_user set password =#{pwd}  where user_id=#{id}  ;")
    Integer UpdPwd(@Param("pwd") String pwd,@Param("id") Long id);
}
